package com.colodoo.framework.manager.menu.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 菜单
 */
@Data
@Entity
@Table(name="menu")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Menu implements Serializable {
    /**
     * 菜单ID
     */
    @Id
    private String menuId;

    /**
     * 菜单名称
     */
    @Column(name="menu_name")
    private String menuName;

    /**
     * 父菜单ID
     */
    @Column(name="parent_menu_id")
    private String parentMenuId;

    /**
     * 菜单地址
     */
    @Column(name="menu_url")
    private String menuUrl;

    /**
     * 排序
     */
    @Column(name="sort")
    private Integer sort;

    /**
     * 是否可见
     */
    @Column(name="visible")
    private Integer visible;
}